package vashion.azeroth.contant.carts;

public enum CartsErrorEnum {

	ITEM_NOT_EXIST(10001, "商品不存在"),

	SKU_NOT_EXIST(10002, "SKU不存在"),

	SKU_NOT_SELECT(10003, "请选择SKU"),

	CART_MAX_50(10004, "购物车支持商品最大50件"),

	INVENTORY_EXCEED(10005, "商品购买数量超过库存"),

	PARAMETER_ERROR(10006, "参数错误"),

	DATE_ERROR(10007, "数据出错"),

	DELETE_ERROR(10008, "删除失败，数据未查到"),

	SYSTEM_ERROR(10000, "系统错误"),

	DATA_NOT_EXIST(10009, "数据不存在");

	private int errorCode;
	private String errorMessage;

	public int getErrorCode() {
		return errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	private CartsErrorEnum(int errorCode, String errorMessage) {
		this.errorCode = errorCode;
		this.errorMessage = errorMessage;
	}

}
